.chat {
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat .header {
  width: 100%;
  height: 38px;
  color: #fff;
  background-color: #4483ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 0 14px;
}

.main {
  width: 100%;
  flex: 1;
  overflow: hidden;
  background-color: #eee;
  display: flex;
  flex-direction: column;
}

.footer {
  width: 100%;
  background-color: #fff;
}

.footer .bottom {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer .bottom span {
  font-size: 14px;
  color: #333;
}

.footer .bottom a {
  color: #333;
}

.msgBox {
  height: 100%;
  margin-top: 5px;
  overflow-y: scroll;
  flex: 1;
}

.msgBox .msg {
  width: 95%;
  min-height: 40px;
  margin: 10px 5px;
  position: relative;
  display: flex;
  justify-content: flex-start !important;
}

.msgBox .msg .userHead {
  min-width: 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.msgBox .msg .userHead .head {
  width: 20px;
  height: 20px;
}

.msgBox .msg .userMsg {
  width: 80%;
  word-break: break-all;
}

.msgBox .msg .userMsg span {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 5px;
  margin-top: 2px;
  font-size: 13px;
}

.msgBox .msg .userMsg .left {
  background: lavender;
  animation: toLeft 0.5s ease both 1;
}

.msgBox .msg .userMsg .right {
  background: #53a8ff;
  color: #fff;
  animation: toright 0.5s ease both 1;
}

@keyframes toLeft {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes toright {
  0% {
    opacity: 0;
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

.inputBox {
  padding: 0 8px;
  width: 100%;
  height: 50px;
  background: #fff;
  box-shadow: 0 0 5px #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inputBox input {
  height: 36px;
  display: inline-block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 15px;
  font-size: 13px;
}

.inputBox .btn {
  height: 36px;
  min-width: 70px;
  background: #e0e0e0;
  padding: 10px;
  font-size: 13px;
  color: white;
  text-align: center;
  border-radius: 5px;
  margin-left: 5px;
  transition: 0.5s;
}

.inputBox .active {
  height: 36px;
  min-width: 70px;
  background: #409eff;
  padding: 10px;
  font-size: 13px;
  color: white;
  text-align: center;
  border-radius: 5px;
  margin-left: 5px;
  transition: 0.5s;
}
